﻿#ifndef DATAPASS_H
#define DATAPASS_H

#include <QWidget>
#include <QMouseEvent>
#include <QSerialPort>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QTextStream>

namespace Ui {
class DATAPASS;
}

class DATAPASS : public QWidget
{
    Q_OBJECT

public:
    explicit DATAPASS(QWidget *parent = 0);
    bool usb;
    bool Opend;
    QSerialPort *serial;

public slots:
    bool changeTransMethod(QString);
    int usbpass();
//    void select_data(int );
    void deal_data(QStringList );

private slots:
    void strinit();
    void sendData();
    void openserial();
    QString findserial();
    bool checkUdisk();
    void bbshow(QString ,QString );

private:
//    QSerialPort *serial;
    QString Udisk;  
    bool pre1;
    QTextStream ioToUdisk;
};

#endif // DATAPASS_H
